import {http} from "@/utils/http/axios";

export interface AnchorManage {
  chanDesc: string;
  chanId: string;
  chanLevel: string;
  chanName: string;
  chanStatus: string;
  createTime: string;
  gameId: string;
  gameName: string;
  hasReflectbtn: string;
  id: number;
  updateTime: string;
}

/**
 * 查询主播信息
 */
export function getAnchorFilter(params) {
  return http.request({
    url: '/datacenter/anchor/list',
    method: 'post',
    params
  });
}


export function registerAnchor(params) {
  return http.request({
    url: '/datacenter/anchor/regist',
    method: 'post',
    params
  });
}

export function updateAnchor(params) {
  return http.request({
    url: '/datacenter/anchor/update',
    method: 'post',
    params
  });
}

export function deleteAnchor(params) {
  return http.request({
    url: '/datacenter/anchor/delete',
    method: 'post',
    params
  });
}




